﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 结构
{
    internal class Program
    {
        static void Main()
        {
            var point_struct = new sDimensions();//结构不需要初始引用
            point_struct.Length = 3;
            point_struct.Width = 6;
            Console.WriteLine(point_struct.Diagonal);

            var point_class = new cDimensions(3,6);//类需要初始引用
            point_class.Length = 3;
            point_class.Width = 6;
            Console.WriteLine(point_class.Diagonal);
        }
    }
}
